package io.renren.modules.api.service;

import io.renren.modules.api.entity.PsOrderRouteSectionEntity;

import java.util.List;
import java.util.Map;

/**
 * 订单路线路段(区间)表
 * 
 * @author wangdajiang
 * @email 2750757088@qq.com
 * @date 2018-04-21 10:26:24
 */
public interface PsOrderRouteSectionService {
	
	PsOrderRouteSectionEntity queryObject(Long id);
	
	List<PsOrderRouteSectionEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(PsOrderRouteSectionEntity psOrderRouteSection);
	
	void update(PsOrderRouteSectionEntity psOrderRouteSection);
	
	void delete(Long id);
	
	void deleteBatch(Long[] ids);

	List<Map<String,Object>> queryDestinationsByOrderNum(String ordernum);

	PsOrderRouteSectionEntity queryDesByOrderNumAndSortNum(String ordernum,Integer arriveDesNum);

	List<PsOrderRouteSectionEntity> queryListByOrderNum(String ordernum);

}
